package com.bj.users.service;

import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSONObject;
import com.bj.users.pojo.AAdmins;

public interface IUsersService
{
	/**
	 * 查找一个管理员service
	 * 
	 * @param condMap
	 * @return
	 */
	AAdmins findOneAdminService(Map<String, Object> condMap);

	/**
	 * 查找多个管理员service
	 * 
	 * @param condMap
	 * @return
	 */
	List<AAdmins> findListAdminService(Map<String, Object> condMap);

	/**
	 * 插入单个管理员service
	 * 
	 * @param admin
	 * @return
	 */
	JSONObject insertAdmin(AAdmins admin);
	
	/**
	 * 更新一条管理员service
	 * @param admin
	 * @return
	 */
	JSONObject updateAdmin(AAdmins admin);
	
	/**
	 * 删除一条管理员service
	 * @param admin
	 * @return
	 */
	JSONObject deleteAdmin(AAdmins admin);
}
